POV-Ray : Newsgroups : povray.newusers : random elements in blob object : Re: random elements in blob object Server Time
5 Sep 2024 08:18:26 EDT (-0400)
  Re: random elements in blob object  
From: Deaken
Date: 5 Feb 2002 06:03:01
Message: <3C5FBC39.8BF959D6@sw-tech.com>
Tom Melly wrote:
> 
> #declare S1 = seed(32534);
> #while(1=1)
>     #declare S2 = seed(rand(S1))
>     object{foo translate y*rand(S2)}
> #end
> 
> Here, you get some variation for rand(S2), but not a lot. This is because the
> seed to S2 is always in the range 0 -> 1, which returns a random stream with
> very little variation.

Wait.  The way I'm reading this, the smaller the (absolute value of the)
seed is, the less the stream varies.

Please tell me that I'm misunderstanding.

If I'm not, can someone post a brief summary (my C is very bad) of why
(computer, not design decision) this is?

Deaken


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.